import request from "../util/request";

let busiApi = {}
let staffBaseUrl = '/staff'
let skuBaseUrl = '/sku'
let rnsBaseUrl = '/userRns'
let orderBaseUrl = '/order'

// 门店
busiApi.staffLogin = (data) => {
    return request({
        url: staffBaseUrl + '/login',
        method: 'POST',
        data
    })
}

// 校验手机号是否实名
busiApi.checkRns = (data) => {
    return request({
        url: rnsBaseUrl + '/checkRns',
        method: 'POST',
        data
    })
}

busiApi.querySkuList = (data) => {
    return request({
        url: skuBaseUrl + '/getList',
        method: 'POST',
        data
    })
}

// 登记入住
busiApi.applyOccupy = (data) => {
    return request({
        url: skuBaseUrl + '/applyOccupy',
        method: 'POST',
        data
    })
}



// 根据手机号查询订单
busiApi.queryOrderByMsisdn = (data) => {
    return request({
        url: orderBaseUrl + '/getListByMsisdn',
        method: 'POST',
        data
    })
}



export default busiApi